package com.example.houseitemmanagebackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 物品实体类
 */
@Data
@TableName("items")
public class Items {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private Integer userId;

    private Integer categoryId;

    private Integer locationId;

    private String specificLocation;

    private Integer quantity;

    // 改为Integer类型：1表示消耗品，0表示非消耗品
    private Integer isConsumable;

    private BigDecimal price;

    private LocalDate purchaseDate;

    private String purchaseChannel;

    private LocalDate expiryDate;

    private String status;

    private String notes;

    private Integer iconId;

    private String brand;

    private String specification;

    private Integer warranty;

    private BigDecimal rating;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;
}